package com.ft.oa.web.approval;


import com.ft.oa.domain.approval.ApplyForApproval;
import com.ft.oa.domain.dto.ApiResult;
import com.ft.oa.service.approval.BusinessProcessService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * 待办中心--审批相关
 * @author milli
 * @ClassName BusinessProcessController
 */
@RestController
@RequestMapping("/businessProcess")
public class BusinessProcessController {

    @Resource
    private BusinessProcessService businessProcessService;

    /**
     * 待办中心待审批以及历史审批详情
     * @param applyForApproval
     * @return ApiResult
     */
    @PostMapping("/approvalDetail")
    public ApiResult approvalDetail(@RequestBody ApplyForApproval applyForApproval){
        return businessProcessService.approvalDetail(applyForApproval);
    }


}
